CREATE TABLE [dbo].[CustomerLoanHistory](
	[LoanHistoryID] [uniqueidentifier] NOT NULL,
	[LoanID] [uniqueidentifier] NULL,
	[CustomerName] [nvarchar](50) NULL,
	[LoanExecutionDate] [datetime] NULL,
	[LoanProjectStageID] [uniqueidentifier] NULL,
	[OldCustomerCode] [nvarchar](50) NULL,
	[LastConsecutiveDelay] [int] NULL,
	[LastDiscreteDelay] [int] NULL,
	[LoanCloseDate] [datetime] NULL,
	[Notes] [nvarchar](max) NULL,
	[LoanHistoryCloseTypeID] [uniqueidentifier] NULL,
 CONSTRAINT [PK_LoanHistory] PRIMARY KEY CLUSTERED 
(
	[LoanHistoryID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]








